Skip to content

WebGLAnimation#105

Open
trusktr wants to merge 12 commits intomainfrom
WebGLAnimation
Open

WebGLAnimation#105
trusktr wants to merge 12 commits intomainfrom
WebGLAnimation

Conversation

@trusktr
Copy link
Copy Markdown
Member

@trusktr trusktr commented Dec 14, 2020

No description provided.

…holder classes for `WebGLRenderingContext` & `WebGL2RenderingContext` which will become the wrappers for our native WebGLContext that is part of the native `window` class.
@trusktr trusktr marked this pull request as draft December 14, 2020 05:50
@p3nGu1nZz p3nGu1nZz marked this pull request as ready for review January 16, 2021 01:14
@trusktr
Copy link
Copy Markdown
Member Author

trusktr commented Jan 16, 2021

😃


// functions or properties required for testing

requestAnimationFrame(animationLoop: WebGLAnimationFrame): void {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASWebGLue in fact now provides WebGLRenderingContext (we could add WebGLRenderingContext at some point, but for now I just want to get things running).

For requestAnimationFrame, see https://github.com/trusktr/ecmassembly.

* @param gl version 1 of webgl used by most browsers
* @param gl2 version 2 of webgl which supports additional texture features and custom XR and VR devices
*/
setContext(gl: WebGLRenderingContext | null, gl2: WebGL2RenderingContext | null): void {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discriminated union. :)

@trusktr
Copy link
Copy Markdown
Member Author

trusktr commented Jun 24, 2021

@ZoeDreams Gonna circle back to this and get it in. We will replace requestAnimationFrame with the one from the ecmassembly lib, delete WebGL2RenderingContext (for now, we'll import that one from ASWebGLue later), and replace WebGLRenderingContext with the one ASWebGLue currently has.

@trusktr trusktr changed the base branch from master to main September 7, 2022 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants